package dongshi.daddy.main;

import dongshi.daddy.service.MyMockService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ConsumerWithMockMain {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("consumer-with-mock.xml");
        context.start();
        MyMockService myMockService = (MyMockService) context.getBean("myMockServiceInConsumerSide");
        System.out.println(myMockService.mockSayHi("hello"));
    }
}
